package com.example.demo.model.entity;

import javax.persistence.*;
import java.util.Set;

/**
 * Created by Administrator on 2018/4/10.
 */

@Entity
@Table(name = "t_activity")
public class ActivityModel {

    @Id
    @Column
    private String activityId;

    @Column
    private String activityName;

    @Column
    private String activityDesc;

    @Column
    private String activityContent;

    @Column
    private Integer limitPeople;

    @Column
    private Long createTime;

    @Column
    private String address;

    @Column
    private Long startTime;

    @Column
    private Long endTime;

    @Column
    private Long applyStartTime;

    @Column
    private Long applyEndTime;

    @Column
    private Integer activityStatus = 0;

    @Column
    private Integer applyCount;

    @Column
    private String shopId;

    @Column
    private String activityImg;

    @Column
    private Integer activityIndex;

    @Column
    private String providerUrl;

    public String getProviderUrl() {
        return providerUrl;
    }

    public void setProviderUrl(String providerUrl) {
        this.providerUrl = providerUrl;
    }

    @OneToMany
    @JoinColumn(name = "activityId", insertable = false, updatable = false)
    private Set<ApplyModel> apply;

    @Transient
    private boolean hasApply;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getApplyStartTime() {
        return applyStartTime;
    }

    public void setApplyStartTime(Long applyStartTime) {
        this.applyStartTime = applyStartTime;
    }

    public Long getApplyEndTime() {
        return applyEndTime;
    }

    public void setApplyEndTime(Long applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public Set<ApplyModel> getApply() {
        return apply;
    }

    public void setApply(Set<ApplyModel> apply) {
        this.apply = apply;
    }

    public boolean isHasApply() {
        return hasApply;
    }

    public void setHasApply(boolean hasApply) {
        this.hasApply = hasApply;
    }

    public String getActivityImg() {
        return activityImg;
    }

    public void setActivityImg(String activityImg) {
        this.activityImg = activityImg;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityDesc() {
        return activityDesc;
    }

    public void setActivityDesc(String activityDesc) {
        this.activityDesc = activityDesc;
    }

    public String getActivityContent() {
        return activityContent;
    }

    public void setActivityContent(String activityContent) {
        this.activityContent = activityContent;
    }

    public Integer getLimitPeople() {
        return limitPeople;
    }

    public void setLimitPeople(Integer limitPeople) {
        this.limitPeople = limitPeople;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public Integer getActivityStatus() {
        return activityStatus;
    }

    public void setActivityStatus(Integer activityStatus) {
        this.activityStatus = activityStatus;
    }

    public Integer getApplyCount() {
        return applyCount;
    }

    public void setApplyCount(Integer applyCount) {
        this.applyCount = applyCount;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Integer getActivityIndex() {
        return activityIndex;
    }

    public void setActivityIndex(Integer activityIndex) {
        this.activityIndex = activityIndex;
    }
}
